#include "gamedata.h"

GameData::GameData(QObject *parent) :
    QObject(parent)
//  , m_gameTime(0,0)
//  , m_gameOn(false)
//  , m_gameTimeSeconds(0)
{
//    for(int i = 0; i < 9; ++i) {
//        m_cakes << new Cake;
//    }
    // Timer to update the game time
//    m_gameTimer = new QTimer(this);
//    connect(m_gameTimer, SIGNAL(timeout()), this, SLOT(updateTime()));
//    m_gameTimer->setInterval(1000);
}

GameData::~GameData()
{
}

//void GameData::pauseGame(bool state)
//{
//    if (state)
//        m_gameTimer->stop();
//    else
//        m_gameTimer->start();
//}

//void GameData::updateTime()
//{
//    if (m_gameOn) m_gameTimeSeconds++;
//    setGameTime(m_gameTime.addSecs(m_gameTimeSeconds).toString("m:ss"));
//}
